<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateManagerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('manager', function (Blueprint $table) {
            $table->bigIncrements('id')->notNull();  //id
            $table->String('name')->notNull();  //用户名
            $table->enum('sex',[1,2])->notNull()->default('1'); // 1男2女
            $table->string('password')->notNull();//密码
            $table->tinyInteger('is_admin')->notNull(); //管理员
            $table->string('user_img')->notNull(); //头像
            $table->string('email')->notNull();//邮箱

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('manager');
    }
}
